#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMediaPlayer>
#include <QMediaPlaylist>
#include <QMediaRecorder>
#include <QVideoEncoderSettings>
#include <QAudioEncoderSettings>
#include <QUrl>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void start();
    void stop();

private:
    Ui::MainWindow *ui;
    QMediaPlayer player;
    //QMediaObject mediaObject;
    QMediaPlaylist playlist;
    QMediaRecorder *recorder;
};

#endif // MAINWINDOW_H
